package com.fs.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fs.pojo.WhInvInventoryDetail;
import com.fs.vo.Condition;


/**
 * @author yyds
 * @fileName InventoryDetailService
 * @date 2024/10/11 19:34
 * @description 盘点单服务
 **/
public interface InventoryDetailService {
    /**
     * 分页按盘点单查询盘点明细
     *
     * @param condition
     * @return
     */
    Page<WhInvInventoryDetail> selectDetailById(Condition<WhInvInventoryDetail> condition);
    /**
     * 新增盘点明细表
     *
     * @param condition
     * @return
     */
    Boolean addDetail(Condition<WhInvInventoryDetail> condition);
    /**
     * 根据盘点单号批量删除盘点明细
     *
     * @param id
     * @return
     */
    Boolean deleteDetailByInventory(Integer id);
    /**
     * 根据盘点明细编号删除
     * @param id
     * @return
     */
    Boolean deleteDetail(Integer id);
    /**
     * 根据根据盘点明细单编号修改
     *
     * @param condition
     * @return
     */
    Boolean updateDetail(Condition<WhInvInventoryDetail> condition);
    /**
     * 根据ID获取对象
     * @param id
     * @return
     */
    WhInvInventoryDetail selectById(Integer id);
}
